(function ($) {
	function getURL(center, zoom) {
        var lt = Math.round(center.lat() * 1e6),
            ln = Math.round(center.lng() * 1e6);
        return '?latE6=' + lt + '&lngE6=' + ln + '&z=' + zoom;
    }
        
    var m = Z.d().h,
        url = getURL(m.getCenter(), m.getZoom()),
        t="LINK";
    $( '#redeem_error' ).html( '' );
    $( '#redeem_results' ).html('<a href=\'' + url + '\' target=\'_blank\' class=\'pl_narrow pl_portal_name\'>Permalink to this map</a>');
})(jQuery)